<!--
 * @Description: 兄弟选择器
 * @Author: zzj
 * @Date: 2021-08-16 11:00:17
 * @LastEditors: zzj
 * @LastEditTime: 2021-08-16 11:11:24
 * @FilePath: \jiepuyiqing\tyut\zzj\2-css\day02\6-css-selector.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>兄弟选择器</title>
    <style>
        ul.rank{
            margin: 0;
            padding: 0;
            list-style: none;
        }
        ul.rank > li:nth-child(2) ~ *{
            color: chocolate;
        }
        ul.rank > li:nth-child(2) + *{
            color:cornflowerblue;
        }
    </style>
</head>
<body>
    <ul class="rank">
        <li>html</li>
        <li>css</li>
        <li>js</li>
        <li>jquery</li>
        <li>bs</li>
    </ul>
</body>
</html>